package com.example.demo.config.springsecurity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
//链式编程
@Accessors(chain = true)
@TableName("user_info")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {

    @TableId(type = IdType.INPUT)
    private Long id;

    private String name;

    private String password;

    private String role;

    private String mail;

}
